function getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[objectId];
} else {
return false;
}
}
function focusTab(n){
var bg1="url(../images/tab.gif)";
var bg2="url(../images/tab01.gif)";
for(var i=1;i<=2;i++){
if (i==n){
getObject('focusTab'+i).style.background=bg1;
getObject('focusTable'+i).style.display='block';
getObject('focusTab'+i).style.color='#006699';
}
else {
getObject('focusTab'+i).style.background=bg2;
getObject('focusTable'+i).style.display='none';
getObject('focusTab'+i).style.color='#ffffff';
}
}
}

function getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[objectId];
} else {
return false;
}
}
function focusTab_a(n){
var bg1="url(../images/tab.gif)";
var bg2="url(../images/tab02.gif)";
for(var i=1;i<=7;i++){
if (i==n){
getObject('focusTab_a'+i).style.background=bg1;
getObject('focusTable_a'+i).style.display='block';
getObject('focusTab_a'+i).style.color='#006699';

}
else {
getObject('focusTab_a'+i).style.background=bg2;
getObject('focusTable_a'+i).style.display='none';
getObject('focusTab_a'+i).style.color='#b8b8b8';
}
}
}
function getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[objectId];
} else {
return false;
}
}
function focusTab_b(n){
var bg1="url(images/mainpage/tab.gif)";
var bg2="url(images/mainpage/tab01.gif)";
for(var i=1;i<=3;i++){
if (i==n){
getObject('focusTab_b'+i).style.background=bg1;
getObject('focusTable_b'+i).style.display='block';
getObject('focusTab_b'+i).style.color='#003399';

}
else {
getObject('focusTab_b'+i).style.background=bg2;
getObject('focusTable_b'+i).style.display='none';
getObject('focusTab_b'+i).style.color='#9f9f9f';
}
}
}

function getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[objectId];
} else {
return false;
}
}
function focusTab_c(n){
var bg1="url(images/mainpage/tab.gif)";
var bg2="url(images/mainpage/tab01.gif)";
for(var i=1;i<=4;i++){
if (i==n){
getObject('focusTab_c'+i).style.background=bg1;
getObject('focusTable_c'+i).style.display='';
getObject('focusTab_c'+i).style.color='#fff';

}
else {
getObject('focusTab_c'+i).style.background=bg2;
getObject('focusTable_c'+i).style.display='none';
getObject('focusTab_c'+i).style.color='#75a9d3';
}
}
}

function getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
return document.layers[objectId];
} else {
return false;
}
}
function focusTab_d(n){
var bg1="url(images/mainpage/tab.gif)";
var bg2="url(images/mainpage/tab01.gif)";
for(var i=1;i<=4;i++){
if (i==n){
getObject('focusTab_d'+i).style.background=bg1;
getObject('focusTable_d'+i).style.display='';
getObject('focusTab_d'+i).style.color='#fff';

}
else {
getObject('focusTab_d'+i).style.background=bg2;
getObject('focusTable_d'+i).style.display='none';
getObject('focusTab_d'+i).style.color='#75a9d3';
}
}
}


function opposite(funId) {
	var targetId,targetElement,imgtargetId,imgtargetElement;
	targetId=funId;
	targetElement= document.getElementById(targetId);
	imgtargetId="img-"+funId;
	//imgtargetElement= document.all(imgtargetId);
	if (targetElement.style.display=="none"){
		//imgtargetElement.src="/Admin/images/leftmenu/mnode.gif";
		targetElement.style.display="block"
	}else{
		//imgtargetElement.src="/Admin/images/leftmenu/pnode.gif";
		targetElement.style.display="none"
	}
}
  var sDepartureCity ="<%=dbdcity.getCityname()%>";
  var sArrivalCity ="<%=dbacity.getCityname()%>";
   
  function goGuiYan(sGo) {
   	if(sGo=="go"){
   		srchform.arrivalcity.value="贵阳";
   		var sCity = sDepartureCity ;
   		if(sCity == "贵阳" ){
   			sCity = sArrivalCity ;
   		}
   		srchform.departurecity.value=sCity;
   	}else{
   		srchform.departurecity.value="贵阳";
   		var sCity = sArrivalCity ;
   		if(sCity == "贵阳" ){
   			sCity = sDepartureCity ;
   		}
   		srchform.arrivalcity.value=sCity;
   	}
   	
  }
